﻿<%@ Page Language="VB" MasterPageFile="~/promocionVenta.master" AutoEventWireup="false" CodeFile="consultaIngresosDeposito.aspx.vb" Inherits="Reportes_Separaciones" Title=" .:: EVOLTA | Promoción ::. " %>

<%@ MasterType VirtualPath="~/promocionVenta.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="flan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.filaEncabezadoPrincipal
{
background-image: url('../imagenes/px_td.jpg');
width: 100%;
background-repeat: repeat;
}
.filaEncabezadoTitulo
{
background-image: url('../imagenes/submenu3.PNG');
background-repeat: repeat;
}
.filaEncabezado
{
background-image: url('../imagenes/submenu3.PNG');
width: 100%;
background-repeat: repeat;
}
.colGrilla
{
background-image: url( '../imagenes/submenu2.PNG' );
background-repeat: repeat;
height: 20px;
color: Black;
text-align: center;
font-size: 9px;
}
.style1
{
width: 180px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table style="width: 100%; background-color: #f4f4f4;" cellspacing="0">
<tr class="filaEncabezadoPrincipal">
<td>
<table width="100%">
<tr>
<td><asp:Label ID="Label1" runat="server" CssClass="CeldaTituloTexto" Text="Reporte de Ingresos por Depósitos"></asp:Label></td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Panel ID="pnlRptSeparacion" runat="server" Width="100%">
<table style="width: 100%; background-color: #f4f4f4" class="EditarLabel" cellspacing="0" border="1" cellpadding="0">
<tbody>
<tr>
<td>
<table cellpadding="0" border="0">
<tr>
<td align="right"><asp:Label ID="Label92" runat="server" Text="Vendedor :" SkinID="lblNormal"></asp:Label></td>
<td align="right">&nbsp;</td>
<td>
<asp:UpdatePanel ID="upVendedor" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<select id="selVendedor" name="D1" runat="server" class="CssddlNormal"><option></option></select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td width="10">&nbsp;</td>
<td width="10">&nbsp;</td>
<td width="10">&nbsp;</td>
<td width="10">&nbsp;</td>
</tr>
<tr>
<td align="right"><asp:Label ID="Label6" runat="server" SkinID="lblNormal" Text="Rango Fecha Inicial :"></asp:Label></td>
<td align="right">&nbsp;</td>
<td>
<asp:UpdatePanel ID="upFchInicio" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txtFchInicio" runat="server" SkinID="txtNormalObligatorioSkin" Width="100px"></asp:TextBox>
<asp:ImageButton ID="imgFchInicio" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png" />
<ajax:MaskedEditExtender ID="MExtFchInicio" runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtFchInicio" UserDateFormat="DayMonthYear">
</ajax:MaskedEditExtender>
<ajax:CalendarExtender ID="CExtFchInicio" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgFchInicio" TargetControlID="txtFchInicio">
</ajax:CalendarExtender>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td align="right">&nbsp;</td>
<td align="right"><asp:Label ID="Label27" runat="server" SkinID="lblNormal" Text="Rango Fecha Final :"></asp:Label></td>
<td align="right">&nbsp;</td>
<td>
<asp:UpdatePanel ID="upFchFin" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txtFchFin" runat="server" SkinID="txtNormalObligatorioSkin" Width="100px"></asp:TextBox>
<asp:ImageButton ID="imgFchFin" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png" Width="16px" />
<ajax:MaskedEditExtender ID="MExtFchFin" runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtFchFin" UserDateFormat="DayMonthYear">
</ajax:MaskedEditExtender>
<ajax:CalendarExtender ID="CExtFchFin" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgFchFin" TargetControlID="txtFchFin">
</ajax:CalendarExtender>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td width="10">&nbsp;</td>
<td width="10"><asp:Button ID="btnBuscar" runat="server" SkinID="btnNormalSkin" Text="Buscar" /></td>
<td width="10"><asp:Button ID="btnLimpiar" runat="server" SkinID="btnNormalSkin" Text="Limpiar" /></td>
<td width="10"><asp:Button ID="btnExportar" runat="server" SkinID="btnNormalSkin" Text="Exportar" /></td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td width="10">&nbsp;</td>
<td width="10">&nbsp;</td>
<td width="10">&nbsp;</td>
<td width="10">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div style="width: 100%; overflow-x: scroll; border: solid 1px #999999; margin: 1px 1px 1px 1px;">
<!--EXTGRIDVIEW-->
<asp:UpdatePanel ID="upConsulta" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div id="pnlGrillaDetalle" class="DivPanelGrilla" runat="server">
<exGV:ExtGridView ID="gvwLista" runat="server" CssClass="EditarGridView" Width="100%" EnableViewState="False" CollapseButtonText="<img src='../Imagenes/Tree/collapse.png' alt='Comprimir' border='0'/>" ExpandButtonText="<img src='../Imagenes/Tree/expand.png' alt='Expandir' border='0' />" AutoGenerateColumns="False" AllowPaging="True" PageSize="17">
<Columns>
<asp:BoundField DataField="idSeparacionVenta" Visible="False" HeaderText="ESTADO">
</asp:BoundField>
<asp:BoundField DataField="correlativo" HeaderText="N°"><ItemStyle HorizontalAlign="Center" Width="3%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="numOperacion" HeaderText="Nº Operación"><ItemStyle HorizontalAlign="Center" Width="5%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="fchSeparacion" HeaderText="F. Separación"><ItemStyle HorizontalAlign="Center" Width="6%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="NombresCompletos" HeaderText="Nombre Cliente"><ItemStyle HorizontalAlign="Left" Width="16%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="nroDcmtoCliente" HeaderText="DNI"><ItemStyle HorizontalAlign="Center" Width="4%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="TelefonosCliente" HeaderText="Teléfonos"><ItemStyle HorizontalAlign="Center" Width="7%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="detalle" HeaderText="Inmueble"><ItemStyle HorizontalAlign="Left" Width="20%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="totalSeparacion" HeaderText="S/. Separación" DataFormatString="{0:#,###,##0.00}"><ItemStyle HorizontalAlign="Right" Width="6%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="ctaInicial" HeaderText="S/. Inicial" DataFormatString="{0:#,###,##0.00}"><ItemStyle HorizontalAlign="Right" Width="7%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="fchCtaInicial" HeaderText="Fecha Cuota"><ItemStyle HorizontalAlign="Center" Width="5%" Height="20px"></ItemStyle></asp:BoundField>
<%-- <asp:BoundField DataField="descFormaPagoCtaInicial" HeaderText="Forma de Pago">
<ItemStyle HorizontalAlign="Left" Width="8%" Height="20px"></ItemStyle>
</asp:BoundField>--%>
<asp:BoundField DataField="financiamiento" HeaderText="S/. Financiamiento" DataFormatString="{0:#,###,##0.00}"><ItemStyle HorizontalAlign="Right" Width="7%" Height="20px"></ItemStyle></asp:BoundField>
<asp:BoundField DataField="fchSaldoFinanciar" HeaderText="Fecha Saldo"><ItemStyle HorizontalAlign="Center" Width="5%" Height="20px"></ItemStyle></asp:BoundField>
<%--<asp:BoundField DataField="descFormaPagoSaldoFin" HeaderText="Forma de Pago">
<ItemStyle HorizontalAlign="Left" Width="8%" Height="20px"></ItemStyle>
</asp:BoundField>--%>
<asp:BoundField DataField="descEntidadFin" HeaderText="Entidad Financiera"><ItemStyle HorizontalAlign="Left" Width="9%" Height="20px"></ItemStyle></asp:BoundField>
<asp:TemplateField HeaderStyle-CssClass="colGrilla">
<ItemTemplate>
<exGV:ExtGridView ID="egvPagoDetalle" ShowHeader="True" runat="server" CollapseButtonText="-" ExpandButtonText="+" AutoGenerateColumns="False" Width="100%" EnableViewState="False">
<Columns>
<asp:BoundField DataField="idSeparacionVenta" Visible="False" HeaderText="ESTADO">
<ItemStyle HorizontalAlign="Center" Width="25%" Height="20px"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="descMotivo" HeaderText="TIPO">
<ItemStyle HorizontalAlign="Left" Width="10%"></ItemStyle>
</asp:BoundField>
<%--<asp:BoundField DataField="fchPago" HeaderText="FECHA" HtmlEncode="False" DataFormatString="{0:dd/MM/yyyy}">
<ItemStyle HorizontalAlign="Center" Width="8%" Height="20px"></ItemStyle>
</asp:BoundField>--%>
<asp:BoundField DataField="fchCancelacion" HeaderText="FECHA CAN." HtmlEncode="False" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-CssClass="colGrilla">
<ItemStyle HorizontalAlign="Center" Width="8%" Height="20px"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="cuota" HeaderText="MONTO" HtmlEncode="False" DataFormatString="{0:###,###.00}">
<ItemStyle HorizontalAlign="Right" Width="10%" Height="20px"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="vouchet" HeaderText="N° OPERACION">
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="descFormaPago" HeaderText="FORMA PAGO">
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="idSeparacionventaPagos" Visible="False" HeaderText="ESTADO">
</asp:BoundField>
</Columns>
<RowStyle CssClass="RowStyleGridView" />
<PagerStyle CssClass="PagerStyleGridView" />
<HeaderStyle CssClass="colGrilla" HorizontalAlign="Center"/>
<AlternatingRowStyle CssClass="AlternatingRowStyleGridView"/>
</exGV:ExtGridView>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle CssClass="RowStyleGridView" />
<PagerStyle CssClass="PagerStyleGridView" />
<HeaderStyle CssClass="colGrilla" />
<AlternatingRowStyle CssClass="AlternatingRowStyleGridView"/>
</exGV:ExtGridView>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
<tr>
<td>
<table style="width:50%" cellpadding="0" cellspacing="0">
<tr>
<td width="1">&nbsp;</td>
<td class="style1">&nbsp;&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="2"></td>
<td class="style1"><asp:Label ID="Label29" runat="server" SkinID="lblNormalNegrita" Text="Monto Total de Separación"></asp:Label></td>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="lblTSeparación" runat="server" SkinID="lblNormal">: 0</asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td width="2"></td>
<td class="style1"><asp:Label ID="Label30" runat="server" SkinID="lblNormalNegrita" Text="Monto Total de Cuota Inicial"></asp:Label></td>
<td>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Label ID="lblTCtaInicial" runat="server" SkinID="lblNormal">: 0.00</asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td width="2"></td>
<td class="style1"><asp:Label ID="Label31" runat="server" SkinID="lblNormalNegrita" Text="Monto Total de Saldo a Financiar"></asp:Label></td>
<td>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:Label ID="lblTSaldoFin" runat="server" SkinID="lblNormal">: 0.00</asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td width="2">&nbsp;</td>
<td class="style1">&nbsp;&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</asp:Panel>
</asp:Content>